package com.durablemethods.tsmserver.model;

import java.util.HashMap;
import java.util.Map;

public class TraderPositionSummary {
	private String trader;
	private Map<String, Double> sharesByTeamMap = new HashMap<String, Double>();
	public Map<String, Double> getSharesByTeamMap() {
		return sharesByTeamMap;
	}
	public void setSharesByTeamMap(Map<String, Double> sharesByTeamMap) {
		this.sharesByTeamMap = sharesByTeamMap;
	}
	public String getTrader() {
		return trader;
	}
	public void setTrader(String trader) {
		this.trader = trader;
	}
	public Double getPayoutForTeam(String team){
		if (sharesByTeamMap.containsKey(team)){
			Double payout = sharesByTeamMap.get(team);
			return payout;
		}else{
			return 0.0;
		}
	}

}
